<?php
/**
 * Created by PhpStorm.
 * User: s.utkin
 * Date: 04.02.2015
 * Time: 14:02
 */

/**
 * @var $this \Pinenut\Action
 * @var $item \Multilang\TranslateEntities
 * @var $langId string
 */

$title = $item->getTitle($langId);
$safeTitle = substr($this->txt2html($title), 0, 200);
$needApprove = $item->isNeedApprove($langId) ? 1 : 0;
$url = $this->url('multilang.panelForm', ['id'=>$item->_id]);

?>
<li class="clearfix need-approve-item" data-need-approve="<?php echo $needApprove; ?>" data-item-id="<?php echo $item; ?>">
	<label for="">
		<a href="#" data-ajax-href="<?php echo $url; ?>" data-ajax-container=".panelFormContainer">
			<?php echo $safeTitle; ?>
		</a>
	</label>
	<a class="remove-translate-item glyphicon glyphicon-remove-circle" title="Mark for Remove"> </a>
</li>
